package com.sale24h.tasks;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;


import com.example.serverconnect.BaseAsyncTask;
import com.example.serverconnect.ITaskListener;
import com.example.serverconnect.JSONParser;

public class GetAllKhuVucTask extends BaseAsyncTask
{
	private String url="get_all_khuvuc_ban.php";
	private JSONParser jParser=new JSONParser();
	public GetAllKhuVucTask(ITaskListener listener,Context context)
	{
		super(listener,context);
		// TODO Auto-generated constructor stub
		this.url=baseUrl+this.url;
	}

	@Override
	protected String doInBackground(String... params)
	{
		 List<NameValuePair> args = new ArrayList<NameValuePair>();
         // getting JSON string from URL
         this.obj = jParser.makeHttpRequest(url, "GET", args);
		return obj.toString();
	}

}
